package com.kuang.pojo;

import java.io.Serializable;

public class Product implements Serializable {
    private int id;
    private String name;
    private String price;
    private String  number;
    private String suppiler;
    private String jinjia;
    private String detail;

    public Product() {
    }

    public Product(int id, String name, String price, String number, String suppiler, String jinjia, String detail) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.number = number;
        this.suppiler = suppiler;
        this.jinjia = jinjia;
        this.detail = detail;
    }

    @Override
    public String toString() {
        return "Product{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", price='" + price + '\'' +
                ", number=" + number +
                ", suppiler='" + suppiler + '\'' +
                ", jinjia='" + jinjia + '\'' +
                ", detail='" + detail + '\'' +
                '}';
    }

    public Product(int id,String number ,String suppiler,String jinjia) {
        this.id = id;
        this.number = number;
        this.suppiler = suppiler;
        this.jinjia = jinjia;
    }

    public Product(String name, String price , String number, String suppiler, String jinjia, String detail) {
        this.name = name;
         this.price=price;
        this.number = number;
        this.suppiler = suppiler;
        this.jinjia = jinjia;
       this.detail=detail;
    }

    public Product(int id, String number) {
        this.id = id;
        this.number = number;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getSuppiler() {
        return suppiler;
    }

    public void setSuppiler(String suppiler) {
        this.suppiler = suppiler;
    }

    public String getJinjia() {
        return jinjia;
    }

    public void setJinjia(String jinjia) {
        this.jinjia = jinjia;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }
}
